import { createRouter, createWebHistory } from "vue-router"
import { routes } from "./commonRoutes"


const router = createRouter({
  history: createWebHistory(),
  routes,
})

router.beforeEach((to, from) => {
  console.log(to)
  console.log(from)
})

export const setUpRouter = (app) => {
  app.use(router)
}

export default router